<?php
/* @var $this GroupController */
$this->pageTitle=Yii::app()->name.'-小组申请';
?>

<h1>小组申请</h1>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm',array(
	'id'=>'apply-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
));?>

<div class="row">
	<?php echo $form->labelEx($applyForm,'name');?>
	<?php echo $form->textField($applyForm,'name');?>
	<?php echo $form->error($applyForm,'name');?>
</div>

<div class="row">
	<?php echo $form->labelEx($applyForm,'description');?>
	<?php echo $form->textArea($applyForm,'description');?>
	<?php echo $form->error($applyForm,'description');?>
</div>

<div class="row">
	<?php echo $form->labelEx($applyForm,'reason');?>
	<?php echo $form->textArea($applyForm,'reason');?>
	<?php echo $form->error($applyForm,'reason');?>
</div>

<div class="row">
	<?php echo $form->labelEx($applyForm,'category');?>
	<?php $list=array(array('value'=>0,'text'=>'分类1'),array('value'=>1,'text'=>'分类2'),array('value'=>2,'text'=>'分类3'),array('value'=>3,'text'=>'分类4'));?>
	<?php echo $form->dropDownList($applyForm,'category',CHtml::listData($list,'value','text'),array('empty'=>'--请选择--'));?>
	<?php echo $form->error($applyForm,'category');?>
</div>

<div class="row">
	<?php echo $form->labelEx($applyForm,'image');?>
	<?php echo $form->textField($applyForm,'image');?>
	<?php echo $form->error($applyForm,'image');?>
</div>
<div class="row buttons">
	<?php echo CHtml::submitButton('申请');?>
</div>
<?php $this->endWidget();?>
</div><!--form-->
